<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>${title}</title>
	<meta name="keywords" content="${keywords}">
	<meta name="description" content="${description}">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="${Domain}common/amazeui/i/favicon.ico">
    <meta name="apple-mobile-web-app-title" content="${title}" />
   
   <link rel="stylesheet" href="${Domain}common/weui/css/weui.min.css">
    <link rel="stylesheet" href="${Domain}common/amazeui/css/amazeui.min.css" />
    <link rel="stylesheet" href="${Domain}common/amazeui/css/app.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_i2ky1mupxe5yu8fr.css">
    <script src="${Domain}common/amazeui/js/jquery.min.js"></script>
    <script type="text/javascript" src="${Domain}common/js/jquery.form.min.js"></script> 
    <script src="${Domain}common/amazeui/js/amazeui.min.js"></script>
   
    <script src="${Domain}common/weui/js/weui.min.js"></script>
    <script src="${Domain}common/echarts/echarts.min.js"></script>
</head>
<body data-type="index">
    <script src="${Domain}common/amazeui/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
        <header>
            <!-- logo -->
            <div class="am-fl tpl-header-logo">
                <a href="${Domain}my"><img src="${Domain}common/amazeui/img/logo.png" alt=""></a>
            </div>
            <!-- 右侧内容 -->
            <div class="tpl-header-fluid">
                <!-- 侧边切换 -->
                <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
                </div>
                <!-- 搜索 -->
                <div class="am-fl tpl-header-search">
                    <form class="tpl-header-search-form" action="javascript:;">
                        <button class="tpl-header-search-btn am-icon-search"></button>
                        <input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
                    </form>
                </div>
                <!-- 其它功能-->
                <div class="am-fr tpl-header-navbar">
                    <ul>
                        <!-- 欢迎语 -->
                        <li class="am-text-sm tpl-header-navbar-welcome">
                            <a href="${Domain}my/info/avatar"><span><img src="${Domain}${user.Avatar()}"   width="24px" style="margin-top: -5px;"> ${(user.name)!} ,欢迎你! </span> </a>
                        </li>

                        <!-- 新邮件 -->
                        <li class="am-dropdown tpl-dropdown" data-am-dropdown>
                            <a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle title="私信">
                                <i class="am-icon-envelope"></i>
                                <span class="am-badge am-badge-success am-round item-feed-badge" id="msgs-total"></span>
                            </a>
                            <!-- 弹出列表 -->
                            <ul class="am-dropdown-content tpl-dropdown-content" id="msgs-list" >
                             
                            </ul>
                        </li>

                        <!-- 新提示 -->
                        <li class="am-dropdown" data-am-dropdown>
                            <a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
                                <i class="am-icon-bell"></i>
                                <span class="am-badge am-badge-warning am-round item-feed-badge" id="at-total"></span>
                            </a>

                            <!-- 弹出列表 -->
                            <ul class="am-dropdown-content tpl-dropdown-content" id="at-list"  >
                                 
                            </ul>
                        </li>
						
						<!-- 新提示 -->
                        <li class="am-dropdown " data-am-dropdown>
                            <a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
                                <i class="am-icon-cog "> <span class="am-text-sm">设置</span></i>
                           
                            </a>

                            <!-- 弹出列表 -->
                            <ul class="am-dropdown-content tpl-dropdown-content">
                                <li class="tpl-dropdown-menu-notifications">
                                    <a href="${Domain}my/info/update" class="tpl-dropdown-menu-notifications-item am-cf">
                                        <div class="tpl-dropdown-menu-notifications-title">
                                            <i class="am-icon-edit"></i>
                                            <span> 信息设置</span>
                                        </div>
                                       
                                    </a>
                                </li>
                                
                                 <li class="tpl-dropdown-menu-notifications">
                                    <a href="${Domain}my/info/avatar" class="tpl-dropdown-menu-notifications-item am-cf">
                                        <div class="tpl-dropdown-menu-notifications-title">
                                            <i class="am-icon-image"></i>
                                            <span> 修改头像</span>
                                        </div>
                                        
                                    </a>
                                </li>
                                
                                <li class="tpl-dropdown-menu-notifications">
                                    <a href="${Domain}my/info/resetpwd" class="tpl-dropdown-menu-notifications-item am-cf">
                                        <div class="tpl-dropdown-menu-notifications-title">
                                            &nbsp; <i class="am-icon-key"></i>
                                            <span> 修改密码</span>
                                        </div> 
                                    </a>
                                </li>

                            </ul>
                        </li>
                        
                        <!-- 退出 -->
                        <li class="am-text-sm">
                            <a href="${Domain}login/exit/${user.access_token}">
                                <span class="am-icon-sign-out"></span> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

        </header>
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        <!-- 侧边导航栏 -->
        <div class="left-sidebar">
            

            <!-- 菜单 -->
            <ul class="sidebar-nav">
                
                <li class="sidebar-nav-link">
                    <a href="${Domain}my" <#if active=="index">class="active" </#if>>
                        <i class=" am-icon-home sidebar-nav-link-logo"></i> 首页
                    </a>
                </li>
                
			 <!-- 常用 -->
			 <#if user.role==4||user.role==5||user.role==6>
               <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-changyong iconfont sidebar-nav-link-logo"></i> 常用
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="used"> style="display: block;"</#if>>
                         <li class="sidebar-nav-link">
				                    <a href="${Domain}my/used/patient"  <#if action=="patient">class="active" </#if>>
				                        <i class="iask-icon-huanzhe  iconfont sidebar-nav-link-logo"></i> 患者<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
				                    </a>
				          </li>
				           <li class="sidebar-nav-link">
				                    <a href="${Domain}my/used/cure"  <#if action=="cure">class="active" </#if>>
				                        <i class="iask-icon-menzhensuifang  iconfont sidebar-nav-link-logo"></i> 治疗<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
				                    </a>
				          </li>
				           <li class="sidebar-nav-link">
				                    <a href="${Domain}my/used/access"  <#if action=="patient">class="access" </#if>>
				                        <i class="iask-icon-suifangdianhua  iconfont sidebar-nav-link-logo"></i> 随访<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
				                    </a>
				          </li>

                    </ul>
                </li>
              </#if> 
              
               
                
               <!-- 登记 -->
               <#if user.role==4||user.role==5||user.role==6>               
               <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-dengji iconfont sidebar-nav-link-logo"></i> 登记
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="patient"||active=="cure"> style="display: block;"</#if>>
                        
						 <li class="sidebar-nav-link">
				                    <a href="${Domain}my/patient/list"  <#if active=="patient">class="active" </#if>>
				                        <i class="iask-icon-dengji1  iconfont sidebar-nav-link-logo"></i> 患者<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
				                    </a>
				          </li>
			                <li class="sidebar-nav-link">
			                    <a href="${Domain}my/cure/list"  <#if active=="cure">class="active" </#if>>
			                        <i class="iask-icon-dengjijiuzhenqia iconfont sidebar-nav-link-logo"></i> 治疗<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
			                    </a>
			                </li>

                    </ul>
                </li>
               </#if>
               <!-- 访问-->
                  <#if user.role==4||user.role==5||user.role==6>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-wenjuan iconfont sidebar-nav-link-logo"></i> 访问
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="access"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/access/list/1" <#if  type?exists&&type=1>class="active"</#if>>
                                <span class="iask-icon-suifangxinxijibenxinxi iconfont sidebar-nav-link-logo"></span>健康<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/access/list/2" <#if  type?exists&&type=2>class="active"</#if>>
                                <span class="iask-icon-dianhuasuifang iconfont sidebar-nav-link-logo"></span>随访 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                </#if>
				 <!-- 统计 -->
                <#if user.role==4||user.role==5||user.role==6>            
               <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-tongji iconfont sidebar-nav-link-logo"></i> 统计
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub"  <#if active=="daily"||active=="medical"||active=="analysis"> style="display: block;"</#if>>
						<li class="sidebar-nav-link" >
                            <a href="${Domain}my/daily" <#if  active=="daily">class="active"</#if>>
                                <span class="iask-icon-iconfontshijuan iconfont sidebar-nav-link-logo"></span>常规统计<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/medical" <#if  active=="medical">class="active"</#if>>
                                <span class="iask-icon-iconfontshijuan iconfont sidebar-nav-link-logo"></span>医学统计<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/analysis" <#if  active=="analysis">class="active"</#if>>
                                <span class="iask-icon-iconfontshijuan iconfont sidebar-nav-link-logo"></span>定制统计<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                    </ul>
                </li> 
                </#if> 
           
                <!-- 问卷 -->
                  <#if user.role==1||user.role==2||user.role==3>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-moban iconfont sidebar-nav-link-logo"></i> 问卷
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="survey"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/survey/list/1" <#if  type?exists&&type=1>class="active"</#if>>
                                <span class="iask-icon-iconfontshijuan iconfont sidebar-nav-link-logo"></span>档案模板<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/survey/list/2" <#if  type?exists&&type=2>class="active"</#if>>
                                <span class="iask-icon-buchongiconsvg10 iconfont sidebar-nav-link-logo"></span>随访模板 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>   
                    </ul>
                </li>
                </#if>
                
               
                
                
                <!-- 问题 -->
                <#if user.role==1||user.role==2||user.role==3>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-wenti iconfont sidebar-nav-link-logo"></i> 问题
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="question"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/question/list/0" <#if  type?exists&&type=0>class="active"</#if>>
                                <span class="iask-icon-icon08 iconfont sidebar-nav-link-logo"></span>判断<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/question/list/1" <#if  type?exists&&type=1>class="active"</#if>>
                                <span class="iask-icon-danxuan iconfont sidebar-nav-link-logo"></span>单选 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        
                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/question/list/2" <#if  type?exists&&type=2>class="active"</#if>>
                                <span class="iask-icon-danxuan1 iconfont sidebar-nav-link-logo"></span>多选<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         <li class="sidebar-nav-link">
                            <a href="${Domain}my/question/list/3" <#if  type?exists&&type=3>class="active"</#if>>
                                <span class="iask-icon-duoxingtiankong iconfont sidebar-nav-link-logo"></span>数字<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         <li class="sidebar-nav-link">
                            <a href="${Domain}my/question/list/4" <#if  type?exists&&type=4>class="active"</#if>>
                                <span class="iask-icon-plus-blanksfill iconfont sidebar-nav-link-logo"></span>填空<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                </#if>

                <!-- 选项 -->
                <#if user.role==1||user.role==2||user.role==3>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-xuanxiang iconfont sidebar-nav-link-logo"></i> 选项
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="answer"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/answer/list/0" <#if  type?exists&&type=0>class="active"</#if>>
                                <span class="iask-icon-danxuan iconfont sidebar-nav-link-logo"></span>选择<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/answer/list/1" <#if  type?exists&&type=1>class="active"</#if>>
                                <span class="iask-icon-plus-blanksfill iconfont sidebar-nav-link-logo"></span>填空 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        
                       
                    </ul>
                </li>
                </#if>

             <!-- 建议-->
                <#if user.role==1||user.role==2||user.role==3>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-jianyi iconfont sidebar-nav-link-logo"></i> 建议
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="advice"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/advice/list" <#if  active=="advice">class="active"</#if>>
                                <span class="iask-icon-c_icon2 iconfont sidebar-nav-link-logo"></span>问题建议<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                       
                    </ul>
                </li>
                </#if>
				  <!-- 设置 -->
                <#if user.role==3>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-shezhi iconfont sidebar-nav-link-logo"></i> 设置
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="main"> style="display: block;"</#if>>                       
                        <li class="sidebar-nav-link" >
		                    <a href="${Domain}my/main/diseaselist" <#if active=="main"&&action=="diseaselist">class="active" </#if>>
		                        <i class="iask-icon-jibing iconfont sidebar-nav-link-logo"></i> 疾病<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		
		                    </a>
		                </li>
                          <li class="sidebar-nav-link" >
		                    <a href="${Domain}my/main" <#if active=="main"&&action=="execute">class="active" </#if>>
		                        <i class="iask-icon-peizhi iconfont sidebar-nav-link-logo"></i> 配置 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		
		                    </a>
		                </li> 
                    </ul>
                </li>
                </#if>
                <!-- 医疗  -->
                <#if user.role==1||user.role==2>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-rizhiliebiao iconfont sidebar-nav-link-logo"></i> 医疗
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="disease"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/disease/list" <#if  dtype?exists&&dtype=='disease'>class="active"</#if>>
                                <span class="iask-icon-rizhi iconfont sidebar-nav-link-logo"></span>疾病信息<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
	                    
                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/disease/department" <#if  dtype?exists&&dtype=='department'>class="active"</#if>>
                                <span class="iask-icon-caozuorizhi iconfont sidebar-nav-link-logo"></span>就诊科室 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        
                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/disease/place" <#if  dtype?exists&&dtype=='place'>class="active"</#if>>
                                <span class="iask-icon-gongzuorizhi iconfont sidebar-nav-link-logo"></span>身体位置 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         <li class="sidebar-nav-link">
                            <a href="${Domain}my/disease/treatment" <#if  dtype?exists&&dtype=='treatment'>class="active"</#if>>
                                <span class="iask-icon-xitongrizhi iconfont sidebar-nav-link-logo"></span>治疗方式<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/disease/agerange" <#if  dtype?exists&&dtype=='agerange'>class="active"</#if>>
                                <span class="iask-icon-xitongrizhi iconfont sidebar-nav-link-logo"></span>年龄阶段<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         
                    </ul>
                </li>
                </#if>
                <!-- 成员  -->
                <#if user.role==1||user.role==2||user.role==3||user.role==4>
                <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-kyonghuzuzhi iconfont sidebar-nav-link-logo"></i> 成员
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="user"> style="display: block;"</#if>>
                        
                         <#if user.role==1||user.role==2>
                         
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/user/list/1" <#if  role?exists&&role==1>class="active"</#if>>
                                <span class="iask-icon-guanliyuan2 iconfont sidebar-nav-link-logo"></span>管理员<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/user/list/2" <#if  role?exists&&role==2>class="active"</#if>>
                                <span class="iask-icon-guanliyuan iconfont sidebar-nav-link-logo"></span>运维员 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         <li class="sidebar-nav-link" >
                            <a href="${Domain}my/user/list/0" <#if  role?exists&&role==0>class="active"</#if>>
                                <span class="iask-icon-huiyuan iconfont sidebar-nav-link-logo"></span>普通用户<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                          </li>
                           
                        </#if>
                        <#if user.role==3||user.role==4>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/user/list/3" <#if  role?exists&&role==3>class="active"</#if>>
                                <span class="iask-icon-guanliyuan2 iconfont sidebar-nav-link-logo"></span>管理员<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/user/list/4" <#if  role?exists&&role==4>class="active"</#if>>
                                <span class="iask-icon-guanliyuan iconfont sidebar-nav-link-logo"></span>管理者 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        
                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/user/list/5" <#if  role?exists&&role==5>class="active"</#if>>
                                <span class="iask-icon-yisheng iconfont sidebar-nav-link-logo"></span>医生<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         <li class="sidebar-nav-link">
                            <a href="${Domain}my/user/list/6" <#if  role?exists&&role==6>class="active"</#if>>
                                <span class="iask-icon-hushi iconfont sidebar-nav-link-logo"></span>护士<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        </#if>
						<!--
							<li class="sidebar-nav-link" >
                            <a href="${Domain}my/user/list/-1" <#if  role?exists&&role==-1>class="active"</#if>>
                                <span class="iask-icon-zhichayonghushanchuyonghu iconfont sidebar-nav-link-logo"></span>过期用户<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                          </li>
                          -->
                    </ul>
                </li>
                </#if>
                
                 <!-- 系统 -->
                 <#if user.role==1||user.role==2>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-xitongshezhi iconfont sidebar-nav-link-logo"></i> 系统
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="role"||active=="main"||active=="filter"||active=="function"||active=="type" ||active=="address"> style="display: block;"</#if>>
                        
						<li class="sidebar-nav-link" >
		                    <a href="${Domain}my/role/list" <#if active=="role">class="active" </#if>>
		                        <i class="iask-icon-jiaoseguanli iconfont sidebar-nav-link-logo"></i> 角色<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		                    </a>
		                </li>
                         <li class="sidebar-nav-link" >
		                    <a href="${Domain}my/main/list" <#if active=="main">class="active" </#if>>
		                        <i class="iask-icon-crmtubiao33 iconfont sidebar-nav-link-logo"></i> 实体<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		                    </a>
		                </li>
		                <li class="sidebar-nav-link" >
		                    <a href="${Domain}my/filter/list" <#if active=="filter">class="active" </#if>>
		                        <i class="iask-icon-guolv-copy iconfont sidebar-nav-link-logo"></i> 过滤<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>		
		                    </a>
		                </li>
		                <li class="sidebar-nav-link">
		                    <a href="${Domain}my/function/list"  <#if active=="function">class="active" </#if>>
		                        <i class="iask-icon-moxing iconfont sidebar-nav-link-logo"></i> 模型<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		                    </a>
		                </li>
		                <li class="sidebar-nav-link">
		                    <a href="${Domain}my/type/list"  <#if active=="type">class="active" </#if>>
		                        <i class="iask-icon-type iconfont sidebar-nav-link-logo"></i> 类型<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		                    </a>
		                </li>
		                <li class="sidebar-nav-link">
		                    <a href="${Domain}my/address/list"  <#if active=="address">class="active" </#if>>
		                        <i class="iask-icon-xitongrizhi iconfont sidebar-nav-link-logo"></i> 地址<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
		                    </a>
		                </li>
                    </ul>
                </li>
                </#if>
                
                
                 <!-- 日志 -->
                <#if user.role==3||user.role==4||user.role==5||user.role==6>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-xiaoxi iconfont sidebar-nav-link-logo"></i> 消息
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="msgs"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/msgs/list" <#if  action=="list"||action=="show">class="active"</#if>>
                                <span class="iask-icon-liuyan iconfont sidebar-nav-link-logo"></span>用户私信<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>				
                         <li class="sidebar-nav-link" >
                            <a href="${Domain}my/msgs/at" <#if  action=="at">class="active"</#if>>
                                <span class="iask-icon-related iconfont sidebar-nav-link-logo"></span>与我相关<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/msgs/sys" <#if  action=="sys">class="active"</#if>>
                                <span class="iask-icon-xitongxiaoxi iconfont sidebar-nav-link-logo"></span>系统提醒<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        
                    </ul>
                </li>
                 </#if>
                
                <!-- 日志 -->
                <#if user.role==3||user.role==4>
                 <li class="sidebar-nav-link" >
                    <a href="javascript:;" class="sidebar-nav-sub-title" >
                        <i class="iask-icon-rizhiliebiao iconfont sidebar-nav-link-logo"></i> 日志
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico " ></span>
                    </a>
                    <ul class="sidebar-nav sidebar-nav-sub" <#if active=="log"> style="display: block;"</#if>>
                        <li class="sidebar-nav-link" >
                            <a href="${Domain}my/log/list/0" <#if  level?exists&&level=0>class="active"</#if>>
                                <span class="iask-icon-rizhi iconfont sidebar-nav-link-logo"></span>普通日志<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>

                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/log/list/1" <#if  level?exists&&level=1>class="active"</#if>>
                                <span class="iask-icon-caozuorizhi iconfont sidebar-nav-link-logo"></span>操作日志 <i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                        
                        <li class="sidebar-nav-link">
                            <a href="${Domain}my/log/list/2" <#if  level?exists&&level=2>class="active"</#if>>
                                <span class="iask-icon-gongzuorizhi iconfont sidebar-nav-link-logo"></span>工作日志<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                         <li class="sidebar-nav-link">
                            <a href="${Domain}my/log/list/3" <#if  level?exists&&level=3>class="active"</#if>>
                                <span class="iask-icon-xitongrizhi iconfont sidebar-nav-link-logo"></span>系统日志<i class="am-icon-angle-right sidebar-nav-link-logo am-fr"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                 </#if>
                <!--
                <li class="sidebar-nav-link">
                    <a href="sign-up.html">
                        <i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
                        <span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
                    </a>
                </li>
                <li class="sidebar-nav-link">
                    <a href="login.html">
                        <i class="am-icon-key sidebar-nav-link-logo"></i> 登录
                    </a>
                </li>
                <li class="sidebar-nav-link">
                    <a href="404.html">
                        <i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
                    </a>
                </li>
				-->
            </ul>
            
            <a href="/" class="tngou-by" title="Powered By 码云">Powered By ${info.name}
            </a>
        </div>

<script type="text/javascript">

$(document).ready(function(){

		getMsgs();
		getAt();
 });	

function getMsgs()
{
	
	 		$.getJSON("${Domain}api/msgs/list", function(json){
				  if(json.status)
				  {
				    var total=json.list.length;
				    if(total>0)
				    {			
				    	$("#msgs-total").text(total);
				    	for(var i in json.list){

						   var item= json.list[i];
						   var html='<li class="tpl-dropdown-menu-notifications">'+
                                    '<a href="${Domain}my/msgs/show/'+item.friend+'" class="tpl-dropdown-menu-notifications-item am-cf">'+
                                       ' <div class="tpl-dropdown-menu-notifications-title">'+
                                           ' <span> '+item.name+'：</span>'+
                                           ' <span> '+item.msg+'</span>'+
                                       ' </div>'+
                                        '<div class="tpl-dropdown-menu-notifications-time">'+
                                            item.time+
                                        '</div>'+
                                   ' </a>'+
                               ' </li>';
                            $("#msgs-list").append(html);
						
						}
				    }
				    else
				    {
				  	  $("#msgs-list").hide();
				    }
				  }
			});
		
	
}

function getAt()
{

	 		$.getJSON("${Domain}api/msgs/atlist", function(json){
				  if(json.status)
				  {
				    var total=json.list.length;
				    if(total>0)
				    {
				    	$("#at-total").text(total);
				    	for(var i in json.list){

						   var item= json.list[i];
						   var html='<li class="tpl-dropdown-menu-notifications">'+
                                    '<a href="${Domain}my/msgs/atshow/'+item.id+'" class="tpl-dropdown-menu-notifications-item am-cf">'+
                                       ' <div class="tpl-dropdown-menu-notifications-title">'+
                                           ' <span> '+item.title+'</span>'+                                        
                                       ' </div>'+
                                       '<div class="tpl-dropdown-menu-notifications-time">'+
                                            item.time+
                                        '</div>'+
                                   ' </a>'+
                               ' </li>';
                           $("#at-list").append(html);
						
						}
				    }else
				    {
				  	  $("#at-list").hide();
				    }
				  }
			});
		
	
}


 </script>  